<template>
  <div id="app">
    <div>
      <router-view v-if="isRouterAlive"></router-view>
    </div>
  </div>
</template>

<script>
export default {
  provide(){
    return{
      reload:this.reload
    }
  },
  data () {
    return {
      isRouterAlive:true
    }
  },
  created () {

  },
  methods: {
    reload (){
       this.isRouterAlive = false
       this.$nextTick(function(){
          this.isRouterAlive = true
       })
    }
  },
  components: {
    
  }
}
</script>

<style lang="less">
#app{
  min-height: 1000px;
}
</style>
